package com.xing.binbackend.topology.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

@Getter
@Setter
@SuperBuilder
@JsonIgnoreProperties //反序列化 转成MicroService有字段不存在不报错，忽略
public class MicroService extends Vertex {
    @JsonIgnore // 序列化时忽略 java->json
    @JsonProperty("cloudServiceId") //反序列化时用这个字段 json->java
    private String cloudServiceId;
}
